package cn.yunhe.service.serviceImpl;

import cn.yunhe.dao.UserQuestionHistoryErrorDao;
import cn.yunhe.entity.Field;
import cn.yunhe.entity.UserQuestionHistory;
import cn.yunhe.pojo.UserQuestionHistoryError;
import cn.yunhe.service.UserQuestionHistoryErrorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("userQuestionHistoryErrorService")
public class UserQuestionHistoryErrorServiceImpl implements UserQuestionHistoryErrorService {
    @Autowired
    @Qualifier("userQuestionHistoryErrorDao")
    private UserQuestionHistoryErrorDao userQuestionHistoryErrorDao;
    @Override
    public List<UserQuestionHistoryError> getQuesHError(Field field, UserQuestionHistory userQuestionHistory) {
        List<UserQuestionHistoryError> userQuestionHistoryErrors =  userQuestionHistoryErrorDao.getQuesHError(field,userQuestionHistory);
        return userQuestionHistoryErrors;
    }
}
